// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class SetOilConsumeRecord : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<SetOilConsumeRecord, MasterDbContextLocator>
    {

        public int Id { get; set; }
        public int? GeneratorId { get; set; }
        public decimal? LoadOilConsume { get; set; }
        public decimal? EmptyOilConsume { get; set; }
        public DateTime? CreateTime { get; set; }
    
        public void Configure(EntityTypeBuilder<SetOilConsumeRecord> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.Property(e => e.CreateTime)
                    .HasColumnType("datetime")
                    .HasDefaultValueSql("(getdate())");

                entityBuilder.Property(e => e.EmptyOilConsume).HasColumnType("decimal(18, 2)");

                entityBuilder.Property(e => e.LoadOilConsume).HasColumnType("decimal(18, 2)");
        }

    }
}

